<template>
    <div class="main">
      <div class="group">
        <div class="logo">
          <div></div>
          <span></span>
          <h3>拼团玩法</h3>
        </div>
        <a num="0"  @click="isShow = false,num=1" v-if="num == 0">详细规则></a>
        <a num="1" @click="isShow = true,num=0" v-if="num == 1">详细规则∨</a>
        <p v-show="isShow">{{play_title}}</p>
        <p v-show="!isShow" v-html="play_desc">{{play_desc}}</p>
      </div>
      <div class="introduce">
        <div class="logo">
          <div></div>
          <span></span>
          <h3>产品介绍</h3>
        </div>
        <div class="content" v-html="describe">
          {{describe}}
        </div>
      </div>
    </div>
</template>

<script>
    export default {
        name: 'main',
        data () {
            return {
              isShow: true,
              num:"",
            }
        },
        props:['describe',"play_title","play_desc"],
        mounted(){

        },
        methods: {}
    }
</script>

<style scoped>
  .main {
    padding-bottom:1.5rem !important;
  }
  .group {
    width: 90%;
    min-height:1.6rem;
    border-bottom:1px solid #dddddd;
    margin:0 auto;
    padding:.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex;
    align-items: center;
  }
  .logo div{
    width: .3rem;
    height: .3rem;
    background: #000;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .logo span {
    display: block;
    width: .25rem;
    height: .25rem;
    border-right:1px solid #000;
    border-bottom:1px solid #000;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    margin-left:-.1rem;
  }
  .group h3{
    margin-left:.2rem;
    font-size:.4rem;
  }
  .group a{
    color: #58b884;
    font-size:.3rem;
  }
  .group p{
    width: 90%;
    height:auto;
    padding:0 .7rem;
    font-size:.36rem;
  }
  .group p span {
    margin:0 .1rem;
    font-size:.4rem;
    color: #999;
    line-height:.8rem;
  }

  .introduce{
    width: 90%;
    margin:0 auto;
    padding:.2rem;
  }
  .introduce .logo h3{
    margin-left:.2rem;
    font-size:.4rem;
  }

  .content {
    width: 90%;
    height: auto;
    font-size: 0.36rem;
    padding: 0 0.6rem;
    overflow: hidden;
  }
  .content h1{
    /*font-size:.26rem !important;*/
    /*margin-top:.2rem;*/
    /*border:1px solid #333;*/
  }


  .foot {
    width: 80%;
    padding:0 10%;
    height: 1.5rem;
    border-top:1px solid #dddddd;
    display: flex;
    align-items: center;
    justify-content:space-between;
    position: fixed;
    bottom:0;
    left:0;
    background: #ffffff;
  }
  .foot p {
    font-size:.4rem;
  }
  .foot p span {
    color: #ff5454;
  }
  .foot a {
    display: block;
    width: 5rem;
    text-align: center;
    height:1rem;
    line-height:1rem;
    background: #000;
    color: #ffffff;
    letter-spacing: 2px;
    font-size:.4rem;
  }
</style>
